﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Linq;
using Dpy.Math;
using Dpy.Math.Algebra;

namespace MathTests
{
    public class Helper
    {
        public static void AssertAreEssentiallyEqual(double expected, double actual)
        {
            Assert.IsTrue(expected.EssentiallyEquals(actual));
        }

        public static void AssertAreEssentiallyEqual(Vector expected, Vector actual)
        {
            Assert.IsTrue(Vector.AreEssentiallyEqual(expected, actual));
        }

        public static void AssertAreEssentiallyEqual(Matrix expected, Matrix actual)
        {
            Assert.IsTrue(Matrix.AreEssentiallyEqual(expected, actual));
        }
    }
}
